﻿using System;
using UnityEngine;


/// <summary>
/// 输出控制中心
/// </summary>
public class RInputManager
{
    public static RInputManager Instance { get; private set; }

    public RInputManager(RInputModuleItem rIItem)
    {
        Instance = this;
        
        this.rIStorage = new RInputModuleStorage();
        {
            this.rIItem = rIItem;
            this.rIItem.ReBind(this.rIStorage);
            this.rIItem.Init();
        }
        this.rIStorage.Load();


        rIEvent = new GameObject("RInputModuleEvent").AddComponent<RInputModuleEvent>();
    }

    [Tooltip("存储管理")] public RInputModuleStorage rIStorage;
    [Tooltip("实例管理")] public RInputModuleItem rIItem;
    [Tooltip("生命周期")] public RInputModuleEvent rIEvent;
}